// 开发环境不使用懒加载, 因为懒加载页面太多的话会造成webpack热更新太慢, 所以只有生产环境使用懒加载
const _import = require('./import-' + process.env.NODE_ENV)
/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/',
    component: _import('Index'),
    name: 'Welcome',
    redirect: {
      name: 'Welcome'
    },
    children: [
      {
        path: 'welcome',
        name: 'Welcome',
        component: _import('hande/Welcome')
      },
      {
        path: 'printinfo',
        name: 'PrintInfo',
        component: _import('hande/PrintInfo')
      },
      {
        path: 'scaninfo',
        name: 'ScanInfo',
        component: _import('hande/ScanInfo')
      },
      {
        path: '/setting',
        component: _import('Setting'),
        name: 'Setting'
      }
    ]
  },
]
